##假设的账账户信息
valid_username="admin"
valid_password="123456"

## 错误计数器
count=0

while count < 3:
    username = input("请输入你的用户名: ")
    password = input("请输入你的密码: ")

    if username == valid_username and password == valid_password:
        print(f"登录升高！欢迎您：{username}")
        break
    else:
        count += 1
        print("用户名或密码输入错误")

if count == 3:
    print("错误次数过多,正在退出当前系统")
    exit(1)